package com.ruoyi.bus.service.impl;

import com.ruoyi.bus.domain.BusFactor;
import com.ruoyi.bus.mapper.BusFactorMapper;
import com.ruoyi.bus.service.IBusFactorService;
import com.ruoyi.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-10
 */
@Service
public class BusFactorServiceImpl implements IBusFactorService
{
    @Autowired
    private BusFactorMapper busFactorMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param factorId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public BusFactor selectBusFactorByFactorId(Long factorId)
    {
        return busFactorMapper.selectBusFactorByFactorId(factorId);
    }

    @Override
    public List<BusFactor> selectByMonitorId(String monitorId) {
        return busFactorMapper.selectByMonitorId(monitorId);
    }

    @Override
    public List<BusFactor> selectBusData(Long monitorId, String produceTime, List<String> list) {
        return busFactorMapper.selectBusData(monitorId, produceTime, list);
    }

    @Override
    public List<BusFactor> selectBusFactorByMonitorId(Long monitorId) {
        return busFactorMapper.selectBusFactorByMonitorId(monitorId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param busFactor 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<BusFactor> selectBusFactorList(BusFactor busFactor)
    {
        return busFactorMapper.selectBusFactorList(busFactor);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param busFactor 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertBusFactor(BusFactor busFactor)
    {
        return busFactorMapper.insertBusFactor(busFactor);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param busFactor 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateBusFactor(BusFactor busFactor)
    {
        return busFactorMapper.updateBusFactor(busFactor);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param factorIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteBusFactorByFactorIds(String factorIds)
    {
        return busFactorMapper.deleteBusFactorByFactorIds(Convert.toStrArray(factorIds));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param factorId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteBusFactorByFactorId(Long factorId)
    {
        return busFactorMapper.deleteBusFactorByFactorId(factorId);
    }
}
